package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Log extends AbstractMethod {
    private static final String name = "log";
    /**
    Log JSON alert data to file. One event per line. Must specify the absolute path to the log file. It will be created if it does not exist. Example: stream
    **/
    /**
    将JSON警报数据记录到文件中。每行一个事件。必须指定日志文件的绝对路径。如果不存在，将创建它。示例：流
    **/
    public Log(String filepath) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(filepath));


    }
}
